-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce WildFly module #128
Conversation
Signed-off-by: Philip Riecks <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @rieckpil! Changes look good, just one question about the health endpoint. Copyright can stay the way it is or you can change it to your name instead of IBM Corporation if you want
|
||
@Override | ||
public Optional<String> getReadinessPath() { | ||
return Optional.of("/health"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know if the /health endpoint is always enabled in wildfly 18.0.1.Final? Also, does it seem so be pretty consistent that the /health endpoint only returns HTTP 200 when the app is ready to serve requests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this hint. I checked it and in the documentation they say it's included in the standalone configurations included in the WildFly distribution. But while searching I found that the /health
endpoint is served from the management port of WildFly (9990 by default). I think this won't work with the current setup. I could think of introducing a management port attribute within ServerAdapter
or adjusting getReadinessPath()
to return a URL
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's interesting that the documentation says the module is enabled "standalone" deployments, but then it goes on to describe how to add the module manually, which implies that there can be images of Wildfly that do not have the health module enabled?
Just to be safe lets return an empty optional here for now, perhaps we can rework the ServerAdapter readiness path later on to incorporate a port
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was also a little bit confused while reading the docs. I'll update the Adapter to the default behaviour in the interface
I use Eclipse as my editor, not sure if it honors .editorconfig or not. I might add a code formatting plugin which would format the code as part of the build (Quarkus uses this too) |
Signed-off-by: Philip Riecks <[email protected]>
Unfortunately for Eclipse you would need a plugin (https://editorconfig.org/). If it can be automated within the build, then it's also fine 👍 |
Signed-off-by: rieckpil <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @rieckpil! I'll cut a new release in the next few days so that it becomes available on maven central.
Can you have a first look @aguibert ? I wasn't sure about the license text in the
WildFlyAdapter
and if you want all changes in one commit or smaller commits.Furthermore what formatting options do you use? I didn't auto-format with IntelliJ as it was different to yours (maybe introduce a
.editorconfig
file?).Signed-off-by: Philip Riecks [email protected]